package com.ph.shopping.common.core.customenum;

public enum ResultEnum {
	SUCCESS("200", "成功"),
	
	FAIL("400","无法访问服务器资源"),
	
	EXCEPTION("500","服务器错误"),

	INTERNAL_SERVER_ERROR("0405", "服务器内部错误"),

	//权限
	NO_PERMISSION("10001","用户无访问权限"),
	REGISTERED("10002","手机号已被注册"),
	ROLE_CODE("10003","角色编码错误"),
	ROLE_NOT_EXIST("10004","角色不存在"),
	USER_ISABLED("10005","账号被冻结"),
	TELPHONE_PASSWORD_ERROR("10006","手机号或者密码错误"),
	ROLE_NOT_NULL_ERROR("10007","角色不能为空"),
	PASSWORD_REMIND("10008","初始化密码为123456"),
	ROLE_CAN_NOT_DELETE("10009","该角色不能被删除"),
	PASSWORD_ERROR("10010","输入旧密码错误"),
	
	//订单
	ADD_ORDER_EXCEPTION("80001","新增订单异常"),
	UPDATE_ORDER_EXCEPTION("80002","更新订单异常"),
	SELECT_ORDER_EXCEPTION("80003","查询线上订单异常"),
	ADD_ORDER_ADDRESS_FAIL("80004","新增收货地址失败"),
	DEL_ORDER_ADDRESS_FAIL("80005","删除收货地址失败"),
	UPD_ORDER_ADDRESS_FAIL("80006","修改收货地址失败"),
	ADD_ORDER_ADDRESS_FULL("80007","添加收货地址达到上限"),
	CANCEL_ORDER_ADDRESS_DEFAULT_FAIL("80008","取消默认地址失败"),
	UPD_ORDER_ADDRESS_DEFAULT_FAIL("80009","设置默认地址失败"),
	CANCEL_ORDER_DEFAULT_FAIL("80009","取消订单失败"),
	SHIPPING_DEFAULT_FAIL("800011","发货失败"),
	USER_ERROR("80010","用户信息有误!"),
	SELECT_NO_RESULT("80011","暂无数据"),
	PAY__ORDER_FAIL("800012","使用余额支付失败"),
	PAY__PWD_ERROR("800013","支付密码输入错误"),
	PAY__ORDER_BALANCE_IS_NOT_ENOUGH("800014","账户余额不足"),
	PAY_CONFIRM_RECEIPT_FAIL("800015","交易完成（确认收货）失败"),
	PAY_PWD_EMPTY("800016","未设置支付密码"),
	NO_PRODUCT("800017","库存不足"),
	MONEY_EXCEPTION("800018","此订单支付金额存在风险"),
	



    //文件上传
    NO_FILE_EXCEPTION("11001", "上传文件不存在"),
    FORMAT_FILE_EXCEPTION("11002", "上传文件格式不正确"),
    ERROR_FILE_EXCEPTION("11003", "上传失败"),
    ERROR_FILE_MAX_EXCEPTION("11004", "请上传小于5M的图片"),



  //代理商
  	ADD_AGENT_EXCEPTION("50001", "代理商新增异常"),
  	UPDATE_AGENT_EXCEPTION("50002", "代理商修改异常"),
  	DELETE_AGENT_EXCEPTION("50003", "代理商删除异常"),
  	SELECT_AGENT_EXCEPTION("50004", "获取代理商列表异常"),
  	ADD_AGENT_IMAGE_EXCEPTION("50005", "代理商图片新增异常"),
  	DELETE_AGENT_IMAGE_EXCEPTION("50007", "代理商图片删除异常"),
  	DETAIL_AGENT_EXCEPTION("50008", "获取代理商详细异常"),
  	ENTITY_AGENT_HAVE_EXCEPTION("50009", "本市已存在市县级代理商"),
    ENTITY_COMMUNITY_HAVE_EXCEPTION("500010", "本社区已有社区代理"),
    CONGEALYES_AGENT_EXCEPTION("50015", "代理商解冻异常"),
  	CONGEALNO_AGENT_EXCEPTION("50016", "代理商冻结异常"),
  	PROMOTER_NON_EXISTENT("50017", "推广师不存在"),

	
	//商品
	ADD_PRODUCT_EXCEPTION("70001","商品新增异常"),
	UPDATE_PRODUCT_EXCEPTION("70002","商品修改异常"),
    DELETE_PRODUCT_EXCEPTION("70003","商品删除异常"),
	ENTITY_CHECK_EXCEPTION("70004","数据校验异常"),
	SELECT_PRODUCT_EXCEPTION("70005","获取商品信息异常"),
	ADD_PRODUCT_CLASSIFY_EXCEPTION("70006","商品分类新增异常"),
	UPDATE_PRODUCT_CLASSIFY_EXCEPTION("70007","商品分类修改异常"),
	SELECT_PRODUCT_CLASSIFY_EXCEPTION("70008","获取商品分类信息异常"),
	ADD_PRODUCT_PROPERTY_EXCEPTION("70009","商品属性新增异常"),
	UPDATE_PRODUCT_PROPERTY_EXCEPTION("70010","商品属性修改异常"),
	SELECT_PRODUCT_PROPERTY_EXCEPTION("70011","获取商品属性信息异常"),
	
	
	//供应商
	ADD_SUPPLIER_EXCEPTION("70012","供应商新增异常"),
	UPDATE_SUPPLIER_EXCEPTION("70013","供应商修改异常"),
    DELETE_SUPPLIER_EXCEPTION("70014","供应商删除异常"),
    CONGEALYES_SUPPLIER_EXCEPTION("70015","供应商解冻异常"),
    CONGEALNO_SUPPLIER_EXCEPTION("70016","供应商冻结异常"),
    EXAMINEYES_SUPPLIER_EXCEPTION("70017","供应商审核通过异常"),
    EXAMINENO_SUPPLIER_EXCEPTION("70018","供应商审核不通过异常"),
	ENTITY_CHECK_SUPPLIER_EXCEPTION("700019","数据实体校验异常"),

	//会员
	MEMBER_FAILURE("20001", "操作失败"),
	MEMBER_UNKOWN_ERROR("20002", "服务器错误"),
	MEMBER_DATA_ERROR("20003", "数据不完整"),
	MEMBER_NO_DATA("20004","未查询到相关数据"),
	MEMBER_DATA_EXISTS("20005","数据已存在"),
	MEMBER_NATIVE_PWD_MISMATCH("20006","原密码错误"),
	MEMBERUSER_NON_EXISTENT("20007","该会员不存在"),
	MEMBERAUTH_EXIST("20008","已经是推广师"),
	ACCOUNT_EXIST("20009","账号已经被绑定推广师"),
	ACCOUNT_VILIDATE_ERROR("20010","推广师校验出错"),
	MEMBER_FROZEN("20011","会员处于冻结状态"),
	MEMBER_PWD_MISMATCH("20012","密码错误"),
	MEMBER_USER_MISMATCH("20013","用户不存在"),
	BANK_CHECK_FAIL("20014","校验银行卡失败"),
	ID_NOT_CERTIFIED("20015","身份证未认证"),
	NO_MEMBERSCORCE_EXECEPTION("20016","无会员积分数据"),
	SMS_CODE_ERROR("20017","短信验证码错误"),
	SMS_CODE_INVALID("20018","短信验证码失效"),
	SMS_CODE_EMPTY("20019","未发送短信验证码"),
	ID_IS_EMPTY("20016","未绑定身份证"),
	NO_MEMBERCARD_EMPTY("20020","无此会员卡数据"),
	
	//商户
	ADD_MRRCHANT_EXCEPTION("60001","商户新增异常"),
	UPDATE_MRRCHANT_EXCEPTION("60002","商户修改异常"),
    DELETE_MRRCHANT_EXCEPTION("60003","商户删除异常"),
	SELECT_MRRCHANT_EXCEPTION("60004","获取商户列表异常"),
	ADD_MRRCHANT_IMAGE_EXCEPTION("60005","商户图片新增异常"),
	DETETE_MRRCHANT_IMAGE_EXCEPTION("60007","商户图片删除异常"),
	DETAILE_MRRCHANT_EXCEPTION("60008","获取商户详细异常"),
	USER_BALANCE_RECORD_EXCEPTION("60009","获取用户余额异常"),
	UPDATE_MERCHANT_STATUES_EXCEPTION("60011","修改商户状态异常"),
	SELECT_POSITION_EXCEPTION("60010","获取地理位置异常"),
	GET_COMMUNITY_EXCEPTION("60012","获取社区异常"),
	NO_USER_BALANCE_RECORD_EXCEPTION("60013","无此用户记录"),
	MERCHANT_MONEYPAY_FALIL_EXCEPTION("60014","商户线下订单现金支付失败"),
	NOENOUGH_MONEY_EXCEPTION("60015","余额不足"),
	ADD_MERCHANTUNLINEORDER_EXCEPTION("60016","创建商户线下订单失败"),
	SCORE_MERCHANTPAY_EXCEPTION("60017","商户创建线下订单积分支付失败"),
	NO_MERCHANT_EXCEPTION("60018","无此商户数据"),
	NO_POSITION_EXCEPTION("60019","无区域数据"),
	GET_AGENT_BY_MERCHANT("60020","通过商户获取代理数据异常"),
	ADD_MERCHANT_BALANCE_EXCEPTION("60021","新增商户账户余额异常"),
	UNLINEORDER_SCORE_PROFIT_EXCEPTION("60023","商户线下订单积分赠送异常"),
	ERROR_PAYPASSWORD_EXCEPTION("60024","商户支付密码错误"),
	NOENOUGH_MEMBER_SCORE_EXCEPTION("60025","会员积分支付不足"),
	NO_MEMBER_UNLINEORDER_EXCEPTION("60026","无会员线下订单记录"),
	NO_MERCHANDATA_EXCEPTION("60027","无商户记录"),
	NO_UNLINEORDERDATA_EXCEPTION("60028","获取线下订单异常"),
	NO_MEMBERPAYPASS_EXCEPTION("60029","无商户初始支付密码"),
    //银行卡
    BINDCARD_EXCEPTION("12011", "绑卡异常"),
    UNBINDCARD_EXCEPTION("12012", "解绑异常"),
    CHECKBIND_EXCEPTION("12013", "您输入的验证码错误"),
    NO_CHECKBIND_EXCEPTION("12014", "您没有绑定该银行卡信息"),
    CHECK_TEL_EXCEPTION("12015", "新手机号不能为旧手机号"),
    CHECK_BANK_EXCEPTION("12016", "银行卡信息与身份不符合，请检查"),

    //分润
	USER_MONEY_INSUFFICIENT_EXCEPTION("60013","用户余额不足"),
	UPDAET_USER_MONEY_EXCEPTION("60014","修改用户余额异常"),
	NO_PROFIT("60015","暂无数据需要导出!"),

	//分润
	EXECUTIVE_UNLINEORDERSUPPLYCHAINPROFIT_EXCEPTION("线下订单供应链利润分润异常","90001"),
	UPDATE_UNLINEORDERSUPPLYCHAINPROFIT_EXCEPTION("线下订单供应链利润分润异常","90002"),
	
	//提现
	CASH_MONEY_PASS_ENABLE_ERROR("14001","提现积分大于可用积分"),
	CASH_MONEY_PASS_MAX_ERROR("14002","超过提现积分限定"),
	CASH_MEMBER_EXCEPTION("14003","会员提现异常"),
	CASH_MERCHANT_EXCEPTION("14004","更改商户提现状态异常"),
	CASH_AGENT_EXCEPTION("14005","更改代理提现状态异常"),
	CASH_USERPROFIT_EXCEPTION("14006","更改分润表中提现相关状态异常"),

	//仓库地址
	ADD_ORDER_ADDRESS_EXCEPTION("13001","仓库地址新增异常"),
	UPDATE_ORDER_ADDRESS_EXCEPTION("13002","仓库地址修改异常"),
	DELETE_ORDER_ADDRESS_EXCEPTION("13003","仓库地址删除异常"),
	DEFAULT_ORDER_ADDRESS_EXCEPTION("13004","仓库地址设置默认地址异常"),
	DELIVERY_POINT_ORDER_ADDRESS_EXCEPTION("13005","仓库地址设置默认提货点异常");
	


    ResultEnum(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	private String code;
	private String msg;


	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
